package com.example.controller;

import cn.dev33.satoken.stp.StpUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 业务聚合
 *
 * @version [V2.0]
 * @package com.example.controller;
 * @description:[用一句话描述该文件做什么]
 * @author: [zhuben]
 * @date: [2024-01-25 15:10]
 * @copyright: 2024 echovin.com
 */
@RestController
@RequestMapping("user")
public class UsersController {

    @GetMapping("list")
    public String listUsers(){
        return "当前账户："+ StpUtil.getLoginId() +"查询患者信息列表成功";
    }

    @GetMapping("add")
    public String addUser(){
        return "当前账户："+ StpUtil.getLoginId() +"新增用户信息成功";
    }
}
